<div class="wallets form">
<?php echo $this->Form->create('Wallet', array('class'=>'form-horizontal', 'inputDefaults'=>array('label'=>false))); ?>
	<fieldset>
		<legend><?php echo __('Add Wallet'); ?></legend>
        <div class="form-group">
            <label for="Username" class="col-sm-2 control-label">Username</label>
            <div class="col-sm-6">
                <select name="data[Wallet][user_id]">
                    <?php foreach($users as $user) {
                     echo "<option value='".$user['User']['id']."'>".$user['User']['username']."</option>";
                }?>
                </select>
                
            </div>
        </div>
        
         <div class="form-group">
            <label for="NameCategory" class="col-sm-2 control-label">Name Category</label>
            <div class="col-sm-6">
                <?php echo $this->Form->input('name',array('placeholder'=>'Name Category ...'));?>
            </div>
        </div>
        
         <div class="form-group">
            <label for="current-money" class="col-sm-2 control-label">Current Money</label>
            <div class="col-sm-6">
                <?php echo $this->Form->input('current_money', array('placeholder'=>'Current Money ....'));?>
            </div>
        </div>
        
    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-2">
            <?php echo $this->Form->Submit('Ok',array('class'=>'btn btn-danger'));?>
        </div>
   </div>
        
	</fieldset>
<?php echo $this->Form->end(); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Wallets'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Transactions'), array('controller' => 'transactions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Transaction'), array('controller' => 'transactions', 'action' => 'add')); ?> </li>
	</ul>
</div>
